﻿using Microsoft.EntityFrameworkCore;

namespace WpfApp2.model
{
    internal class SchoolDbContext : DbContext
    {
        public SchoolDbContext()
        {
        }

        protected override void OnConfiguring(DbContextOptionsBuilder options)
        {
            var connectionString = "Data Source=SchoolDb.db";
            options.UseSqlite(connectionString);
        }

        public DbSet<Student> Students { get; set; }
    }
}